-- GENERATED SPELL FOR [Deathguard Fowles] --


function spell0_25079(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25079', 5298, 1)
end

function spell1_25079(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25079', 607, 1)
end

function Sorts_25079(pUnit, Event)
local choix_sorts_25079 = math.random(0, 1)
if choix_sorts_25079 == 0 then
pUnit:RegisterEvent('spell0_25079', 1, 1)
end
if choix_sorts_25079 == 1 then
pUnit:RegisterEvent('spell1_25079', 1, 1)
end
end

function mob25079_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25079', math.random(1500, 3000), 1)
end

function mob25079_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25079_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25079_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25079, 1, 'mob25079_Action')
RegisterUnitEvent(25079, 2, 'mob25079_Leave')
RegisterUnitEvent(25079, 3, 'mob25079_Kill')
RegisterUnitEvent(25079, 4, 'mob25079_Die')
